package com.blog.cloud.api.dto;

import com.blog.cloud.api.entity.User;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Set;

@Getter
@Setter
@Accessors(chain = true)
public class UserInfoDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = -5481686905685625479L;

    private User user;

    private Set<String> roles;

    private Set<String> permissions;

}

// 关于数据校验的使用参考 SpringBoot 官方文档： https://docs.spring.io/spring-boot/reference/io/validation.html